function onActionClick(rowData) {
    debugger
    const self = this.$root;
    console.log(rowData);
    const id = rowData.id.value;
    const enable_flag = rowData.enable_flag && rowData.enable_flag.value === true ? 1 : 0;
    const tableEle = document.querySelector("#table_998xx3_csshandler_generate").__vue__;
    if (!id) {
        self.$message.error("没有找到主键信息,不能进行修改操作");
        retrun;
    }

    // enable_flag
    // 关闭 rule_close_time NOW()
    // 开启 rule_close_time NULL  latest_warning_time NOW()
    if(enable_flag  === 1){
        api.EXEC_FORMULA("UPDATE('ds_tbl:t_7001d4ab6d564ba5ac503b5cb0855c55', QUERY_EQ('id', '" + id + "'), '', ['enable_flag', "+ enable_flag +", 'rule_close_time', null, 'latest_warning_time', NOW()])").then(res => {
            console.log(res, "执行结果,修改成功！");
            self.$message.success("修改成功!");
            tableEle.$$refreshData();
        }).catch(err => {
            self.$message.error(err.message);
        });
    }else {
        api.EXEC_FORMULA("UPDATE('ds_tbl:t_7001d4ab6d564ba5ac503b5cb0855c55', QUERY_EQ('id', '" + id + "'), '', ['enable_flag', "+ enable_flag +",'rule_close_time', NOW()])").then(res => {
            console.log(res, "执行结果,修改成功！");
            self.$message.success("修改成功!");
            tableEle.$$refreshData();
        }).catch(err => {
            self.$message.error(err.message);
        });
    }
}

